package laborhazi;

//import java.awt.Color;
import java.awt.Graphics;
import java.awt.Image;

import javax.swing.ImageIcon;

public class StartAnim extends Animation{
	private Viewer viewer;
	private Image image;
	private ImageIcon im;
	public StartAnim(Viewer v) {
		super();
		viewer = v;
		im = new ImageIcon("startfield.gif");
		image = im.getImage();
	}
	public void animate(StartField start, Graphics g) {
		int[] position;
		position = new int[2];
		position = viewer.fieldToView(start.getPosition());
		g.drawImage(image, position[0], position[1], 20, 20, viewer);;
	}
}
